FROM harbor.lianxin-tech.com:4443/test/tomcat:8

ARG APP_NAME

RUN sed -i "/port=\"8080\"/a \ \ \ \ \ \ \ \ URIEncoding=\"UTF-8\" maxConnections=\"2000\" acceptCount=\"1000\" keepAliveTimeout=\"10000\" maxPostSize=\"314572800\" maxHttpHeaderSize=\"204800\" " /usr/local/tomcat/conf/server.xml ; \
sed -i "/<\/Host>/i <Context path=\"/${APP_NAME}/hrddata\" docBase=\"/hrddata\"  reloadable=\"true\" />" /usr/local/tomcat/conf/server.xml ;

COPY ${APP_NAME}/  /usr/local/tomcat/webapps/${APP_NAME}
